package com.zhuiyun.project.api.collectVideo.service;

import com.zhuiyun.project.api.collectVideo.entity.Favorites;
import com.zhuiyun.project.api.collectVideo.model.FavoritesModel;
import com.zhuiyun.project.common.errorCode.CommonException;
import com.zhuiyun.project.common.response.CommonResult;

/**
* @Author XC8
* @Description 收藏夹service
* @Date 2024/3/4 9:31
* @Return

*/
public interface FavoritesService {
    /**
    * @Author XC8
    * @Description 查询当前用户收藏夹
    * @Date 2024/3/4 9:32
    * @Return com.zhuiyun.project.common.response.CommonResult
    */
    CommonResult getFavoritesById(Integer userId) throws CommonException;

    /**
    * @Author XC8
    * @Description 新增收藏夹
    * @Date 2024/3/4 14:48
    * @Return com.zhuiyun.project.common.response.CommonResult
    */
    CommonResult addFavorite(FavoritesModel favoritesModel) throws CommonException;

    /**
    * @Author XC8
    * @Description 删除收藏夹
    * @Date 2024/3/4 19:48
    * @Return com.zhuiyun.project.common.response.CommonResult
    */
    CommonResult favoritesDelete(Integer fId);
}
